home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Audio, Video & Photo
/
Songbird 0.7.0
/
Songbird_0.7.0_windows-i686-msvc8.exe
/
components
/
sbAboutGStreamer.js
< prev
next >
Wrap
Text File
|
2008-08-06
|
2KB
|
63 lines
/*
//
// BEGIN SONGBIRD GPL
//
// This file is part of the Songbird web player.
//
// Copyright(c) 2005-2008 POTI, Inc.
// http://songbirdnest.com
//
// This file may be licensed under the terms of of the
// GNU General Public License Version 2 (the "GPL").
//
// Software distributed under the License is distributed
// on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
// express or implied. See the GPL for the specific language
// governing rights and limitations.
//
// You should have received a copy of the GPL along with this
// program. If not, go to http://www.gnu.org/licenses/gpl.html
// or write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// END SONGBIRD GPL
//
*/
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cr = Components.results;
const DESCRIPTION = "sbAboutGStreamer";
const CID = "4e1e4d25-0465-4a51-b9e7-751ec700502a";
const CONTRACTID = "@mozilla.org/network/protocol/about;1?what=gstreamer";
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
function sbAboutGStreamer() {
}
sbAboutGStreamer.prototype = {
classDescription: DESCRIPTION,
classID: Components.ID(CID),
contractID: CONTRACTID,
newChannel: function(uri) {
var ioService = Cc["@mozilla.org/network/io-service;1"]
.getService(Ci.nsIIOService);
var childURI = ioService.newURI("chrome://songbird/content/gstreamer/about.xhtml",
null, null);
var channel = ioService.newChannelFromURI(childURI);
channel.originalURI = uri;
return channel;
},
getURIFlags: function(uri) {
return Ci.nsIAboutModule.ALLOW_SCRIPT;
},
QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule])
}
var NSGetModule = XPCOMUtils.generateNSGetModule([sbAboutGStreamer]);